x86/hvm: Corrections and improvements to unhandled vmexit logging
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 19 Apr 2017 15:56:32 +0000 (16:56 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Apr 2017 17:46:34 +0000 (18:46 +0100)
commitef3e8db8068ce4d82501d427dd0ca77a6af89572
tree3627a7098c95f202de5f41cecc40575258d9e509
parent68e9e96953f7aad1bb3b2a1c15c26bbd94897346
x86/hvm: Corrections and improvements to unhandled vmexit logging

 * Use gprintk rather than gdprintk.  These logging messages shouldn't
   disappear in release builds, as they usually happen immediately before a
   domain crash.  Raise them from WARNING to ERR.
 * Format the vmexit reason in the same base as is used in the vendor
   manuals (decimal for Intel, hex for AMD), and consistently use 0x for hex
   numbers.
 * Consistently use "Unexpected vmexit" terminology.

In particular, this corrects the information printed for nested VT-x, and
actually prints information for nested SVM.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/hvm/vmx/vvmx.c